{layout name="layout/layout" /}
<div class="king-content-wrap">
    <div class="king-layout1-content" style="margin-top: 0;margin-left: 0;">
		<ol class="breadcrumb">
		    <li><span>权限管理</span></li>
		    <li><span>角色列表</span></li>
		</ol>
	    <div class="clearfix m20">
            <a class="btn btn-success pull-left" href="{:Url('Right/rule')}">权限列表</a>
		    <a class="btn btn-success pull-left" href="{:Url('Right/addGroup')}">添加角色</a>
		</div>
		<div class="panel panel-default m20" style="margin-top: 20px;">
			<table class="table table-bordered" id="check_box">
				<tr style="background-color: #f5f5f5;font-size: 17px" class="table_title">
					<td>名称</td>
					<td>状态</td>
					<td>操作</td>
				</tr>
				    {foreach name="list" item="item"}
					<tr class="select_box">
						<td><a href="{:Url('Right/editGroup',['id' => $item['id']])}">{$item.title}</a></td>
						<td>{$item.status?'正常':'禁用'}</td>
						<td >
							<div>
	                            <a href="{:Url('Right/editGroup',['id' => $item['id']])}">编辑</a>
	                            <a class="sort" href="{:Url('Right/groupRule',['group_id' => $item['id']])}">权限</a>
	                            <a class="del" data-url="{:Url('Right/delGroup')}" data-id="{$item['id']}" href="javascript:void(0);">删除</a>
							</div>
						</td>
					</tr>
                    {/foreach}
				</table>
			</div>
		</div>
	</div>
</div>
